<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master"  Inherits="System.Web.Mvc.ViewPage" %>


<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">

    <h2>Drinking Dashboard</h2>

<form action="<%=Url.Action("DrinkDateUpdate",new {Id=0}) %>" method="post">
<input type="text" value="<%= ((Frogism.Core.Drinking.DrinkDay)ViewData.Model).Day.ToShortDateString() %>" />
  <table>
            <tr>
                <td>Name</td>
                <td>Count</td>
                <td>Confirm</td>
            </tr>
<% foreach (var item in ((Frogism.Core.Drinking.DrinkDay)ViewData.Model).Items)
   { %>

      
           <tr>
                <td><%= item.DrinkType.Name %></td>
                <td><% var list =((SelectList)ViewData["CountTypes"]);
                        Response.Write(Html.DropDownList("CountTypes",list));
                    %></td>
                <td><%= Html.CheckBox("IsConfirmed"+item.Id.ToString(),false) %></td>
               
            </tr>
        
<%} %>
        </table>
        
</form>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="HeadHolder" runat="server">
</asp:Content>
